﻿@model Dal.Models.User
@{
    Layout = null;
    ViewBag.Nav = 6;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>病例录入</title>
    @Html.Partial("meta")
</head>
<body id="b_main">
    @Html.Partial("header")
    <!--/end #header-->
    <div id="wrapper">
        <!--/end #menu_main-->
        <div id="content">
            @Html.Partial("nav")
            @using (Html.BeginForm("createuser", "account", FormMethod.Post, new { @class = "broom_form", id = "form1", style = "margin-left: 30px;" }))
            {
                <!--/form acts as separator - stroke on top-->
                <table cellspacing="0" summary="table" class="broom_table" width="90%">
                    <tbody>
                        <tr class="odd">
                            <td>
                                1
                            </td>
                            <td>
                                <span>用户名</span>
                            </td>
                            <td>
                                @Html.TextBoxFor(i => i.UserName, new { @class = "inputbox" })
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                                2
                            </td>
                            <td>
                                密码
                            </td>
                            <td>
                                @Html.TextBoxFor(i => i.Password, new { @class = "inputbox" })
                            </td>
                        </tr>
                        <tr class="odd">
                            <td>
                                3
                            </td>
                            <td>
                                电话
                            </td>
                            <td>
                                @Html.TextBoxFor(i => i.Tel, new { @class = "inputbox" })
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                                4
                            </td>
                            <td>
                                负责人
                            </td>
                            <td>
                                @Html.TextBoxFor(i => i.ChargeMan, new { @class = "inputbox" })
                            </td>
                        </tr>
                        <tr class="even">
                            <td>
                                5
                            </td>
                            <td>
                                角色
                            </td>
                            <td>
                                @Html.DropDownListFor(
                                i => i.Role,
                                new SelectListItem[]{ 
                                    new SelectListItem{Text="管理员",Value="1"},
                                    new SelectListItem{Text="普通",Value="0",Selected=true}
                                }, new { @class = "select" })
                            </td>
                        </tr>
                    </tbody>
                </table>
                @Html.HiddenFor(i => i.ID);
                <div class="button">
                    <div class="btn-inner">
                        <span><em>
                            <button type="submit">
                                <img src="/assets/img/icons/disk_black.png" alt="" />保存数据</button>
                        </em></span>
                    </div>
                </div>
            }
        </div>
    </div>
    <div class="clear">
    </div>
</body>
</html>
